<template>
	<div class="home">
		<img @click="changenstate" alt="Vue logo" src="../assets/logo.png">
		<HelloWorld msg="Welcome to Your Vue.js App" />
	</div>
</template>

<script>
	// @ is an alias to /src
	import HelloWorld from '@/components/HelloWorld.vue'
	import { mapGetters, mapActions } from 'vuex'
	export default {
		name: 'home',
		components: {
			HelloWorld
		},
		data() {
			return {

			}
		},
		mounted() {

		},
		computed: mapGetters([ //与vuex中的getters关联

		]),

		methods: mapActions([ //与vuex中的actions关联
			"changenstate",
			"increment",
		]),
	}
</script>